import layoutHeaderAside from '@/layout'

const meta = {auth: true}

export default {
    path: '/air',
    name: 'air',
    meta,
    redirect: {name: "air-realtime"},
    component: layoutHeaderAside,
    children: (pre => [
        // {
        //     path: 'index',
        //     name: `${pre}index`,
        //     redirect: {name: "home"},
        //     component: () => import('@/views/air/home'),
        //     meta: {
        //         ...meta,
        //         title: "首页",
        //         img: require('@/assets/pollution/首页.png'),
        //         isMenu: true
        //     }
        // },
        // {
        //     path: 'equipment',
        //     name: `${pre}equipment`,
        //     component: () => import('@/views/air/equipment'),
        //     meta: {
        //         ...meta,
        //         title: "检测设备入库",
        //         img: require('@/assets/pollution/监测设备入库.png'),
        //         isMenu: true
        //     }
        // },
        {
            path: 'station',
            name: `${pre}station`,
            component: () => import('@/views/air/station'),
            meta: {
                ...meta,
                title: "空气站查询",
                img: require('@/assets/pollution/烟气查询.png'),
                isMenu: true
            }
        },
        {
            path: 'realtime',
            name: `${pre}realtime`,
            component: () => import('@/views/air/Realtime'),
            meta: {
                ...meta,
                title: "实时监测数据",
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: 'airmonitor',
            name: `${pre}airmonitor`,
            component: () => import('@/views/air/AirMonitor'),
            meta: {
                ...meta,
                title: "空气实时监测",
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: 'airhistory',
            name: `${pre}airhistory`,
            component: () => import('@/views/air/AirHistory'),
            meta: {
                ...meta,
                title: "历史监测数据",
                img: require('@/assets/pollution/烟气查询.png'),
                isMenu: true
            }
        },
        {
            path: "abnormale",
            name: `${pre}abnormale`,
            component: () => import("@/views/air/AirAbnormal"),
            meta: {
                ...meta,
                title: "监测异常数据",
                img: require("@/assets/pollution/实时监测数据.png"),
                isMenu: true
            }
        },
        // {
        //     path: 'deviceinfo',
        //     name: `${pre}deviceinfo`,
        //     component: () => import('@/views/air/Deviceinfo'),
        //     meta: {
        //         ...meta,
        //         title: "检测站点管理",
        //         img: require('@/assets/pollution/烟气设备信息.png'),
        //         isMenu: true
        //     }
        // },
        {
            path: 'realvideo',
            name: `${pre}realvideo`,
            component: () => import('@/views/air/Realvideo'),
            meta: {
                ...meta,
                title: "监测站点视频",
                img: require('@/assets/pollution/烟气实时视频.png'),
                isMenu: true
            }
        },
        {
            path:'enterprise',
            name:`${pre}enterprise`,
            component:()=>import('@/views/air/Enterprise'),
            meta:{
                ...meta,
                title:"企业信息查询",
                img:require('@/assets/public/石化企业运维.png'),
                isMenu:true
            }
        },
        {
            path:"control",
            name:`${pre}control`,
            component:()=>import("@/views/air/Control"),
            meta: {
                ...meta,
                title: "仪器动态管控",
                img:require("@/assets/public/石化企业运维.png"),
                isMenu: true
            }
        },
        {
            path: "pmeterhistory",
            name:`${pre}pmeterhistory`,
            component:()=>import("@/views/air/PmeterHistory"),
            meta: {
                ...meta,
                title: "仪器修改历史",
                img: require("@/assets/public/石化企业运维.png"),
                isMenu: true
            }
        }
    ])('air-')
}
